package com.tz.colawallet.basecode.baseUi.fragment;

import android.content.Context;
import android.view.View;
import android.widget.TextView;

import com.tz.colawallet.R;
import com.tz.colawallet.basecode.base.BaseFragment;
import com.tz.colawallet.basecode.baseUi.biz.DameFragBiz;
import com.tz.colawallet.basecode.baseUi.component.DaggerDameFragComponent;
import com.tz.colawallet.basecode.baseUi.contract.DameFragContract;
import com.tz.colawallet.basecode.baseUi.module.DameFragModule;
import com.tz.colawallet.basecode.baseUi.presenter.DameFragPresenter;
import com.tz.colawallet.basecode.basebean.SelectVoiceInfo;

import javax.inject.Inject;

import okhttp3.RequestBody;

public class DemoFragment extends BaseFragment implements DameFragContract.View {

    @Inject
    DameFragPresenter dameFragPresenter;
    @Inject
    DameFragBiz dameFragBiz;

    TextView hello_text;

    @Override
    protected void setup() {
        super.setup();
        DaggerDameFragComponent.builder().dameFragModule(new DameFragModule(this)).build().inject(this);
        dameFragPresenter.setBiz(dameFragBiz);
    }


    @Override
    protected int getLayoutResId() {
        return R.layout.activity_demo;
    }

    @Override
    protected void initTitle(View view) {

    }

    @Override
    protected void init(View view) {
        hello_text = view.findViewById(R.id.hello_text);
    }

    @Override
    protected void initData() {

    }

    @Override
    public Context curContext() {
        return getActivity();
    }

    @Override
    public RequestBody getSelectVoice() {
        return null;
    }

    @Override
    public void showSelectVoice(SelectVoiceInfo selectVoiceInfo) {

    }

    @Override
    public void showFalseSelectVoice() {

    }

    @Override
    public void showMsg(String msg) {
        showToast(msg);
    }
}
